import request from '@/utils/request'
import qs from "qs"

export default{

    // 查询全部操作数据
    ListAll(){

        return request({

            url: '/api-sys/operate-log/list',
            method: 'get',
           
        })

    },


    // 分页查询操作数据

    getList(pageNum,pageSize){

        return request({

            url: '/api-sys/operate-log/getList',
            method: 'get',
            params: { pageNum, pageSize }
        })
    },

     // 分页查询操作数据(筛选模式)

     getListBySelect(pageNum,pageSize,operateName,operateTime){

        return request({

            url: '/api-sys/operate-log/getListBySelect',
            method: 'get',
            params: { pageNum, pageSize,operateName,operateTime}
        })
    },

    // 执行批量删除操作
    deleteList(ids){

        var data=qs.stringify({ids});

        return request({

            url: '/api-sys/operate-log/deleteList',
            method:'delete',
            data
        })


    },

    // 执行批量删除操作根据选择的时间
    deleteListByType(type){

        var data=qs.stringify({type});

        return request({

            url: '/api-sys/operate-log/deleteListByType',
            method: 'delete',
            data
        })


    }

}